package com.sky.local_ads.helper;

import android.app.Activity;

import com.sky.local_ads.BusinessListActivity;
import com.sky.local_ads.adapter.StoreListAdapter;
import com.sky.local_ads.listener.ResponseListener;
import com.sky.local_ads.listener.ServiceResponseListener;
import com.sky.local_ads.servicemanager.ServiceManager;
import com.sky.local_ads.store_list.StoreResponse;

public class StoreListActivityHelper {
	
	public static void getStoreList(Activity activity,final ResponseListener<StoreResponse> listener){
		ServiceManager.getStoreList(activity, new ServiceResponseListener<StoreResponse>() {
			
			@Override
			public void onSuccess(StoreResponse response) {
					listener.onSuccess(response);
				
			}
			
			@Override
			public void onFailure(Throwable throwable, String errorResponse) {
				listener.onFailure(throwable, errorResponse);
				
			}
		});
	}

}
